package com.zhiliang.waibao.myapplication.net;


import com.zhiliang.waibao.myapplication.bean.LoginBean;

import io.reactivex.Observable;

/**
 * Created by Administrator on 2018/3/19.
 */

public class BaseApi {
    public static final String sIFengApi = "  http://vip.fdgjier.com/";
    public static BaseApi sInstance;
    private BaseApiService mService;

    public BaseApi(BaseApiService mService) {
        this.mService = mService;
    }

    public static BaseApi getInstance(BaseApiService baseApiService) {
        if (sInstance == null)
            sInstance = new BaseApi(baseApiService);
        return sInstance;
    }

    public Observable<LoginBean> login(String tel, String password) {
        return mService.login(tel, password);
    }


}
